package com.nondo.rdp.finance.service.impl;

import com.nondo.rdp.finance.domain.Test;
import com.nondo.rdp.finance.repository.TestRepository;
import com.nondo.rdp.finance.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TestServiceImpl implements TestService {
    @Autowired
    private TestRepository testRepository;

    @Override
    public Test findByName(String title) {
        return this.testRepository.findByTitle(title);
    }
}
